package src.lab02.test37;

/**
 * Created by 阿阿阿阿豪丶 on 2017/12/31.
 */
public class Undergraduate extends Student {
    public Undergraduate(String name) {
        super(name);
        dept = "本科生";
    }

    @Override
    public void graderank() {
        int sum = 0;

        for(int i = 0; i < courseNum;i++){
            sum += coursesgrade[i];
        }

        aver = sum / courseNum;

        if(aver > 60){
            gradeRank = "通过";
        }else{
            gradeRank="未通过";
        }

    }
}
